package com.atjava.nebula.core.tablexml.model;

import java.util.ArrayList;
import java.util.List;

public class DataSource extends BaseXmlModel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id ;
	private String desc ;
	private List<Item> item = new ArrayList<Item>() ;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public List<Item> getItem() {
		return item;
	}
	public void setItem(List<Item> item) {
		this.item = item;
	}
	
	public Item getItem(String key) {
		
		for(Item i : item) {
			if(i.getKey().equals(key)) {
				return i ;
			}
		}
		return null ;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
}
